<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改抽成结算')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-serviceOrderSettle-edit" th:object="${zsyhServiceSettle}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">会长id：</label>
                <div class="col-sm-8">
                    <input name="agentId" th:field="*{agentId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">市县id：</label>
                <div class="col-sm-8">
                    <input name="rakerId" th:field="*{rakerId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">会长openid：</label>
                <div class="col-sm-8">
                    <input name="agentOpenid" th:field="*{agentOpenid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">市县openid：</label>
                <div class="col-sm-8">
                    <input name="rakerOpenid" th:field="*{rakerOpenid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结算年度：</label>
                <div class="col-sm-8">
                    <input name="periodYear" th:field="*{periodYear}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结算月度：</label>
                <div class="col-sm-8">
                    <input name="periodMonth" th:field="*{periodMonth}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">应结算金额：</label>
                <div class="col-sm-8">
                    <input name="agentSettleMoney" th:field="*{agentSettleMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">应结算金额：</label>
                <div class="col-sm-8">
                    <input name="rakerSettleMoney" th:field="*{rakerSettleMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结算状态：</label>
                <div class="col-sm-8">
                    <select name="settleStatue" class="form-control m-b" th:with="type=${@dict.getType('settle_statue')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{settleStatue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结算类型：</label>
                <div class="col-sm-8">
                    <select name="settleType" class="form-control m-b" th:with="type=${@dict.getType('settle_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{settleType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">交易号：</label>
                <div class="col-sm-8">
                    <input name="transactionId" th:field="*{transactionId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">结算人：</label>
                <div class="col-sm-8">
                    <input name="settleName" th:field="*{settleName}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zsyh/serviceOrderSettle";
        $("#form-serviceOrderSettle-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-serviceOrderSettle-edit').serialize());
            }
        }
    </script>
</body>
</html>